package com.cloudshadow.platform.server.common.base.vo;

/**
 * Created by apple on 17/3/3.
 */
public class BasicVo<T> {
    private boolean success;
    private T data;
    private ErrorBaseVo error;

    public BasicVo() {
    }

    public BasicVo(boolean success, T data, ErrorBaseVo error) {
        this.success = success;
        this.data = data;
        this.error = error;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public ErrorBaseVo getError() {
        return error;
    }

    public void setError(ErrorBaseVo error) {
        this.error = error;
    }
}
